import service from '@/utils/request';
import { findUrl } from '../globleApiSetting/globleApiSetting';
const apiName = 'position'


/**
 * 查询职位信息
 * @param params 
 * @returns 
 */
export function GetPositionInfo(params: any) {
    const api = findUrl(apiName, '/itf/organization/web/position');
    return service({
        url: api?.selectApis,
        method: api?.methods,
        params
    })

}



/**
 * 新增职位信息
 * @param params 
 * @returns 
 */
export function AddPositionInfo(data: any) {
    const api = findUrl(apiName, '/itf/organization/web/position');
    return service({
        url: api?.selectApis,
        method: 'POST',
        data
    })

}

/**
 * 修改职位信息
 * @param params 
 * @returns 
 */
export function UpdatePositionInfo(data: any) {
    const api = findUrl(apiName, '/itf/organization/web/position');
    return service({
        url: api?.selectApis,
        method: 'PUT',
        data
    })

}
